<h1>Edit a College</h1>
<%= error_messages_for :college %>
<%= flash_notice %>
<div class="form">
  
  <fieldset>
    <legend>Edit the College</legend>
    <% form_for :college, :url => { :action => "update", :id => @college.id} do |form| %>
       
     <div>
        <%= form.label :name %>: <br />
        <%= form.text_field :name,  :class => "short" %>
      </div>   
    
      <div>
        <%= form.label :state %>: <br />
        <%= form.text_field :state,  :class => "short" %>
      </div> 
    
      <div>
        <%= form.label :zip %>: <br />
        <%= form.text_field :zip,  :class => "short" %>
      </div>     
    
      <%= submit_tag "Submit"  %> <br />

       <%= link_to "Delete", :controller => "college", :action => "destroy", :id => @college.id %>
    
    <% end %>
  </fieldset>
</div>
